<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link th:include="inc_css.html">
</head>
<body style="background: #009688">
<div style="width: 100%">
    <a class="app-header__logo" style="width: 13%;float: left" href="javascript:return;">Huc</a>
    <ul class="app-nav" style="width: 87%">
        <li class="dropdown">
            <span th:text="${realName}" style="line-height: 51px;padding-right:20px;color: #FFFFFF"></span>
        </li>
        <li class="dropdown">
            <a class="app-nav__item" href="#" onclick="signOut()" aria-label="Open Profile Menu"><i
                    class="fa fa-sign-out fa-lg"></i></a>
        </li>
    </ul>
</div>
<script type="text/javascript">
    function signOut() {
        $.ajax({
            type: "GET",
            url: "/operation/signOut",
            success: function (data) {
                if (data == "ok") {
                    parent.location.reload();
                }
            },
            error: function () {
                alert("登出失败");
            }
        });
    }
</script>
</body>
</html>